class Solution(object):
    def maxBottlesDrunk(self, numBottles, numExchange):
        """
        :type numBottles: int
        :type numExchange: int
        :rtype: int
        """
        # 初始化空瓶数量
        emptyBottles = numBottles
        bottlesDrunk = numBottles
        while emptyBottles >= numExchange:
            emptyBottles -= numExchange
            numExchange += 1
            # 刚换到的水又立刻喝掉
            bottlesDrunk += 1
            emptyBottles += 1
        return bottlesDrunk
